package com.cloudbroker.bcs.platform.ltb.bizapi.constants.type;

/**
 * Created by tianrui on 2016/7/9.
 */
public enum SMSVerifyType {

    FREQUENTLY(0, "频繁请求"),

    DAYOUT(1, "当天次数已满"),

    TIMEOUT(2, "已超时"),

    SUCCESS(3, "验证成功"),

    EXISTED(4, "已存在"),

    EXISTED_REFRESH(5, "已存在但需要刷新"),

    NO_EXISTED(6, "不存在"),
    ;

    private final int val;

    private final String description;


    private SMSVerifyType(int val, String description) {
        this.val = val;
        this.description = description;
    }

    public int getVal() {
        return val;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "SMSVerifyType{" +
                "val=" + val +
                ", description='" + description + '\'' +
                '}';
    }
}
